﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AbstraX.QueryProviders;
using AssemblyProvider.Web.Entities;
using AbstraX.ServerInterfaces;
using AbstraX.Contracts;

namespace AssemblyProvider
{
    public class AssemblyProviderHierarchy<T> : ExpressionTraceableHierarchy<T> where T : IBase
    {
        private IProviderEntityService ProviderEntityService { get; set; }

        public AssemblyProviderHierarchy(IProviderEntityService providerEntityService)
        {
            this.ProviderEntityService = providerEntityService;
        }

        public AssemblyProviderHierarchy(IProviderEntityService providerEntityService, string parentID) : base(parentID)
        {
            this.ProviderEntityService = providerEntityService;
        }

        protected override IRoot Root
        {
            get 
            {
                return new AssembliesRoot(this.ProviderEntityService);
            }
        }
    }
}
